/*
 * @Description: 职业认证
 * @Author: iamsmiling
 * @Date: 2021-05-29 12:45:33
 * @LastEditTime: 2021-05-30 13:16:21
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/professional_certify/professional_certify_body.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/professional_certify/professional_certify_controller.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ProfessionalCertifyPage extends GetView<ProfessionalCertifyController> {
  const ProfessionalCertifyPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetBuilder<ProfessionalCertifyController>(builder: (_) {
      return Scaffold(
        backgroundColor: R.color.ffffffff,
        appBar: AppBar(
          title: Text("职业认证"),
          elevation: 0,
        ),
        body: Column(
          children: [
            Visibility(
              visible: _.showTip,
              child: Stack(
                children: [
                  Container(
                    padding: EdgeInsets.only(
                        top: R.dimen.dp16,
                        left: R.dimen.dp15,
                        bottom: R.dimen.dp15,
                        right: R.dimen.dp20),
                    alignment: Alignment.centerLeft,
                    width: R.dimen.width,
                    // height: R.dimen.dp60,
                    key: ValueKey("TipItem"),
                    decoration: BoxDecoration(color: R.color.ffd4faed),
                    child: Text(
                      "警告：请填写贵公司营业执照上的公司名，如发现填写虚假的公司或则冒用他人公司，将做封号处理，且纳入系统黑名单。",
                      style: TextStyle(
                          fontSize: R.dimen.sp11, color: R.color.ff111111),
                    ),
                  ),
                  Positioned(
                      top: R.dimen.dp10,
                      right: R.dimen.dp10,
                      child: GestureDetector(
                          onTap: _.close, child: Image.asset(R.image.closeTip)))
                ],
              ),
            ),
            ProfessionalCertifyBody(),
          ],
        ),
        bottomNavigationBar: Container(
          margin: EdgeInsets.only(
              top: R.dimen.dp54,
              left: R.dimen.dp25,
              right: R.dimen.dp25,
              bottom: Get.mediaQuery.padding.bottom),
          child: ElevatedButton(
            onPressed: () {},
            child: Text("提交"),
            style: ButtonStyle(
              shape: MaterialStateProperty.all(RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(R.dimen.sp4))),
              backgroundColor: MaterialStateProperty.all(R.color.ff1bbf8e),
            ),
          ),
        ),
      );
    });
  }
}
